﻿@model dynamic
@{
    var id = Model.GetType().GetProperty("Id").GetValue(Model, null);
    var prevbuttonId = "prev-button-" + id;
    var nextbuttonId = "next-button-" + id;
    var firstItemId = "first-item-" + id;
    var lastItemId = "last-item-" + id;
    var totalId = "total-items-" + id;
}
<div class="pull-right">
    <span class="text-muted"><b><span id="@firstItemId"></span></b>–<b><span id="@lastItemId"></span></b> из <b><span id="@totalId"></span></b></span>
    <div class="btn-group btn-group-sm">
        <button type="button" class="btn btn-default" id="@prevbuttonId">
            <span class="glyphicon glyphicon-chevron-left"></span>
        </button>
        <button type="button" class="btn btn-default" id="@nextbuttonId">
            <span class="glyphicon glyphicon-chevron-right"></span>
        </button>
    </div>
</div>